<?php
	$host = "localhost";
	$user = "techafg_01";
	$password = "@452=T=C2Cg5";
	$database = "techafg_01";
	
	function mydb_connect(){
		global $host, $user, $password, $database, $conn;
                try{
	        $conn = new PDO('mysql:host=127.0.0.1;dbname='.$database.';charset=utf8',$user,$password);
                $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
		} catch(PDOException $e){
	           echo "Error: Database problem." . $e->getMessage();
	           die();
                }
	}
